#include "test.h"

namespace Test
{
    void testComment()
    {
        ScannerTest test("%PDF-1.4\r%\n %%EOF");

        test.checkNext( stComment, "PDF-1.4" );
        test.checkNext( stEOL, "\r" );
        test.checkNext( stComment, "" );        // Empty comment
        test.checkNext( stEOL, "\n" );
        test.checkNext( stWhiteSpace, " " );
        test.checkNext( stComment, "%EOF" );    // comment with '%' inside and followed by EOF mark
    }
}